package com.th.supcom.pds.domain.pojo;

import java.util.Date;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * PdsPrescDetail Pojo对象.
 * 
 * 处方明细.
 */
public class PdsPrescDetail implements java.io.Serializable
{
    private static final long serialVersionUID = 1L;

    /** 处方序号. */
    private String m_prescDetailNo;

    /** 每张处方由处方号唯一标识，流水号，非空. */
    private String m_prescNo;

    /** 静脉药物配置中心(Pharmacy Intravenous Admixture Services，PIVAS为其缩写). */
    private Integer m_pivas;

    /** 拣药人. */
    private String m_sortingPharmacist;

    /**
     * 分拣时间SORTING_DATETIME .
     */
    private Date m_sortingDatetime;

    /** 分拣标志0-未分拣 1-已分拣. */
    private Integer m_sortingIdentification;

    /** 发药者编码. */
    private String m_dispensingProvider;

    /** 0 未发药1已拣药 2已发药3-已改向. */
    private Integer m_dispenseIndicator;

    /** 发药时间. */
    private Date m_dispensingDatetime;

    /** 执行科室. */
    private String m_performedBy;

    /** 窗口号. */
    private Long m_outpDispensaryWin;

    /** 出库单号. */
    private String m_exNo;
    /** 药品批次号 */
    private String m_phamBatchNumber;
    /** 有效期. */
    private Date m_receiptDate;

    /**
     * 获取有效期属性.
     * 
     */
    public Date getReceiptDate ()
    {
        return m_receiptDate;
    }

    /**
     * 设置有效期属性.
     * 
     * @param receiptDate.
     */
    public void setReceiptDate (Date receiptDate)
    {
        m_receiptDate = receiptDate;
    }

    /**
     * 默认构造器 .
     */
    public PdsPrescDetail ()
    {
    }

    /**
     * 获取处方序号属性.
     * 
     */
    public String getPrescDetailNo ()
    {
        return m_prescDetailNo;
    }

    /**
     * 设置处方序号属性.
     * 
     * @param prescDetailNo .
     */
    public void setPrescDetailNo (String prescDetailNo)
    {
        m_prescDetailNo = prescDetailNo;
    }

    /**
     * 获取每张处方由处方号唯一标识，流水号，非空属性.
     * 
     */
    public String getPrescNo ()
    {
        return m_prescNo;
    }

    /**
     * 设置每张处方由处方号唯一标识，流水号，非空属性.
     * 
     * @param prescNo .
     */
    public void setPrescNo (String prescNo)
    {
        m_prescNo = prescNo;
    }

    /**
     * 获取静脉药物配置中心(Pharmacy Intravenous Admixture Services，PIVAS为其缩写)属性.
     * 
     */
    public Integer getPivas ()
    {
        return m_pivas;
    }

    /**
     * 设置静脉药物配置中心(Pharmacy Intravenous Admixture Services，PIVAS为其缩写)属性.
     * 
     * @param pivas .
     */
    public void setPivas (Integer pivas)
    {
        m_pivas = pivas;
    }

    /**
     * 获取拣药人属性.
     * 
     */
    public String getSortingPharmacist ()
    {
        return m_sortingPharmacist;
    }

    /**
     * 设置拣药人属性.
     * 
     * @param sortingPharmacist .
     */
    public void setSortingPharmacist (String sortingPharmacist)
    {
        m_sortingPharmacist = sortingPharmacist;
    }

    /**
     * 获取分拣时间SORTING_DATETIME 属性.
     * 
     */
    public Date getSortingDatetime ()
    {
        if (m_sortingDatetime == null)
        {
            return null;
        }
        return (Date) m_sortingDatetime.clone ();
    }

    /**
     * 设置分拣时间SORTING_DATETIME 属性.
     * 
     * @param sortingDatetime .
     */
    public void setSortingDatetime (Date sortingDatetime)
    {
        if (sortingDatetime == null)
        {
            m_sortingDatetime = null;
        }
        else
        {
            m_sortingDatetime = (Date) sortingDatetime.clone ();
        }
    }

    /**
     * 获取分拣标志0-未分拣 1-已分拣属性.
     * 
     */
    public Integer getSortingIdentification ()
    {
        return m_sortingIdentification;
    }

    /**
     * 设置分拣标志0-未分拣 1-已分拣属性.
     * 
     * @param sortingIdentification .
     */
    public void setSortingIdentification (Integer sortingIdentification)
    {
        m_sortingIdentification = sortingIdentification;
    }

    /**
     * 获取发药者编码属性.
     * 
     */
    public String getDispensingProvider ()
    {
        return m_dispensingProvider;
    }

    /**
     * 设置发药者编码属性.
     * 
     * @param dispensingProvider .
     */
    public void setDispensingProvider (String dispensingProvider)
    {
        m_dispensingProvider = dispensingProvider;
    }

    /**
     * 获取0 未发药1已拣药 2已发药3-已改向属性.
     * 
     */
    public Integer getDispenseIndicator ()
    {
        return m_dispenseIndicator;
    }

    /**
     * 设置0 未发药1已拣药 2已发药3-已改向属性.
     * 
     * @param dispenseIndicator .
     */
    public void setDispenseIndicator (Integer dispenseIndicator)
    {
        m_dispenseIndicator = dispenseIndicator;
    }

    /**
     * 获取发药时间属性.
     * 
     */
    public Date getDispensingDatetime ()
    {
        if (m_dispensingDatetime == null)
        {
            return null;
        }
        return (Date) m_dispensingDatetime.clone ();
    }

    /**
     * 设置发药时间属性.
     * 
     * @param dispensingDatetime .
     */
    public void setDispensingDatetime (Date dispensingDatetime)
    {
        if (dispensingDatetime == null)
        {
            m_dispensingDatetime = null;
        }
        else
        {
            m_dispensingDatetime = (Date) dispensingDatetime.clone ();
        }
    }

    /**
     * 获取执行科室属性.
     * 
     */
    public String getPerformedBy ()
    {
        return m_performedBy;
    }

    /**
     * 设置执行科室属性.
     * 
     * @param performedBy .
     */
    public void setPerformedBy (String performedBy)
    {
        m_performedBy = performedBy;
    }

    /**
     * 获取窗口号属性.
     * 
     */
    public Long getOutpDispensaryWin ()
    {
        return m_outpDispensaryWin;
    }

    /**
     * 设置窗口号属性.
     * 
     * @param outpDispensaryWin .
     */
    public void setOutpDispensaryWin (Long outpDispensaryWin)
    {
        m_outpDispensaryWin = outpDispensaryWin;
    }

    /**
     * 获取出库单号属性.
     * 
     */
    public String getExNo ()
    {
        return m_exNo;
    }

    /**
     * 设置出库单号属性.
     * 
     * @param exNo .
     */
    public void setExNo (String exNo)
    {
        m_exNo = exNo;
    }

    public String getPhamBatchNumber ()
    {
        return m_phamBatchNumber;
    }

    public void setPhamBatchNumber (String phamBatchNumber)
    {
        this.m_phamBatchNumber = phamBatchNumber;
    }

    /**
     * 打印字符串.
     * 
     * @return 打印.
     */
    public String toString ()
    {
        StringBuffer sb = new StringBuffer (100);
        sb.append ("---------------------------------- start ----------------------------------\n");
        sb.append ("prescDetailNo:" + m_prescDetailNo + " prescNo:" + m_prescNo + " pivas:" + m_pivas + "\n");
        sb.append ("sortingPharmacist:" + m_sortingPharmacist + " sortingDatetime:" + m_sortingDatetime + " sortingIdentification:" + m_sortingIdentification + "\n");
        sb.append ("dispensingProvider:" + m_dispensingProvider + " dispenseIndicator:" + m_dispenseIndicator + " dispensingDatetime:" + m_dispensingDatetime + "\n");
        sb.append ("performedBy:" + m_performedBy + " outpDispensaryWin:" + m_outpDispensaryWin + " exNo:" + m_exNo + "\n");

        sb.append ("----------------------------------  end  ----------------------------------\n");
        return sb.toString ();
    }

    /** 日志记录器. */
    public static final Logger s_logger = LoggerFactory.getLogger (PdsPrescDetail.class);

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}